home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / pcl / docs.lha / latexinfo / C / Makefile < prev   
Encoding:
Makefile  |  1992-02-26  |  2.9 KB  |  111 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for the info sources... -*- text -*-
  3. # Copyright (C) 1990-1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. #### Start of system configuration section. ####
  22.  
  23. srcdir = .
  24.  
  25.  
  26. CC = gcc -O
  27. INSTALL = install -c -m 755
  28. INSTALLDATA = install -c -m 644
  29.  
  30. # Things you might add to DEFS:
  31. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  32. # -DUSG            If you have System V/ANSI C string and
  33. #            memory functions and headers.
  34. DEFS = 
  35.  
  36. CDEBUG = -O
  37. CFLAGS = $(CDEBUG) $(DEFS)
  38. LDFLAGS = -O
  39.  
  40. LIBS = 
  41.  
  42. # Colon-separated list of directories in which to look for info files.
  43. DEFAULT_INFOPATH = .:$(INFODIR):/usr/gnu/info:/usr/local/emacs/info:/usr/local/lib/emacs/info
  44.  
  45. # Command used to print out a text file.  The filename follows this command.
  46. INFO_PRINT_COMMAND = lpr
  47.  
  48. prefix = /usr/local
  49.  
  50. # Where installed binaries go.
  51. BINDIR = /afs/cs/project/clisp/build/@sys/alpha/tools
  52.  
  53. # Where info files go.
  54. INFODIR = /afs/cs/project/clisp/hackers/ram/docs/info
  55.  
  56. # Where manual pages go, and their extension (not including `.').
  57. mandir = 
  58. manext = 1
  59.  
  60. #### End of system configuration section. ####
  61.  
  62. PATHSPEC = -DDEFAULT_INFOPATH='"$(DEFAULT_INFOPATH)"'
  63. PRINTSPEC = -DINFO_PRINT_COMMAND='"$(INFO_PRINT_COMMAND)"'
  64. INFO_FLAGS = $(PATHSPEC) $(PRINTSPEC)
  65.  
  66. SOURCES = info.c latexindex.c getopt.c getopt1.c
  67. OBJECTS = info.o latexindex.o getopt.o getopt1.o
  68. HEADERS = getopt.h
  69. SUPPORT = Makefile.in configure 
  70.  
  71. THINGS_TO_TAR = $(SOURCES) $(HEADERS) $(SUPPORT)
  72.  
  73. PROGS = info latexindex
  74.  
  75. all: $(PROGS)
  76.  
  77. info:    info.o getopt.o getopt1.o
  78.     $(CC) $(LDFLAGS) -o info info.o getopt.o getopt1.o -ltermcap $(LIBS)
  79.  
  80. info.o: info.c
  81.     $(CC) -c $(CFLAGS) $(INFO_FLAGS) info.c
  82.  
  83. latexindex: latexindex.o getopt.o getopt1.o
  84.     $(CC) $(LDFLAGS) -o latexindex latexindex.o getopt.o getopt1.o $(LIBS)
  85.  
  86. latexindex.o: latexindex.c
  87.     $(CC) -c $(CFLAGS) latexindex.c
  88.  
  89. info.o latexindex.o getopt1.o: getopt.h
  90.  
  91. install: all
  92.     $(INSTALL) $(PROGS) $(BINDIR)
  93.  
  94. TAGS: $(SOURCES)
  95.     etags $(SOURCES)
  96.  
  97. clean:
  98.     rm -f $(PROGS) $(OBJECTS)
  99.  
  100. distclean: realclean
  101.     -rm -f TAGS Makefile config.status
  102.  
  103. realclean: distclean
  104.  
  105. dist: $(THINGS_TO_TAR)
  106.     rm -rf info-dist
  107.     mkdir info-dist
  108.     (cd info-dist; for i in $(THINGS_TO_TAR); do ln -s ../$$i .; done)
  109.     tar chzf info.tar.Z info-dist
  110.     rm -rf info-dist
  111.